package com.clubs.coding.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AthRecordReq {

    @NotNull(message = "上课时段不能为空")
    private String aboutTime;

    private Integer limitLife;

    private Integer limitMax;
    @NotNull(message = "上课人数不能为空")
    private Integer limitResidue;
    @NotNull(message = "项目名不能为空")
    private String projectName;
    @NotNull(message = "上课地点不能为空")
    private String site;
    @NotNull(message = "上课目标不能为空")
    private String target;
    @NotNull(message = "孩子的组别不能为空")
    private Integer classify;
    @NotNull(message = "上课日期不能为空")
    @Future()
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date thatVeryDay;

    private String image;

    private Integer athRecordId;

    private Integer userId;

    private Date creatTime;

    private Date updadeTime;

    private Integer restRecord;

    private Integer refillCard;

    private Date yearEndTime;

    private Date yearStartTime;
}